import {Observer} from "./observer";
import Watcher from "./Watch";

function Vue(options) {
    this._init(options)
}

initMixin(Vue)

const app = new Vue({
    el: '#app',
    data: {
        text: 'text',
        text2: 'text2'
    },
    render() {
        console.log('render');
    }
})

function _proxy(data) {
    const self = this;
    Object.keys(data).forEach(key => {
        Object.defineProperty(self, key, {
            configurable: true,
            enumerable: true,
            get: function proxyGetter() {
                return self._data[key]
            },
            set: function proxySetter(val) {
                self._data[key] = val;
            }
        })
    })
}

console.log(app.text)